﻿<?php
/**
 * nganh View for nganh World Component
 * 
 * @package    Joomla.Tutorials
 * @subpackage Components
 * @link http://dev.joomla.org/component/option,com_jd-wiki/Itemid,31/id,tutorials:components/
 * @license		GNU/GPL
 */

jimport( 'joomla.application.component.view');

/**
 * HTML View class for the nganhWorld Component
 *
 * @package		Joomla.Tutorials
 * @subpackage	Components
 */
class NganhViewManage extends JView
{

	function display($tpl = null)
	{
	$nganh        =& $this->get('Data'); 
	echo $nganh->manganh;
    $isNew        = ($nganh->manganh == null); 
    $text = $isNew ? JText::_( 'New' ) : JText::_( 'Edit' ); 
    JToolBarHelper::title(   JText::_( 'Quản lý ngành' ).': <small><small>[ ' . $text.' ]</small></small>' ); 
    JToolBarHelper::save(); 
    if ($isNew)  { 
        JToolBarHelper::cancel(); 
    } else { 
        // for existing items the button is renamed `close` 
        JToolBarHelper::cancel( 'cancel', 'Close' ); 
    } 
    $this->assignRef('nganh', $nganh); 	
	$this->assignRef('text', $text); 
        parent::display($tpl); 
    } 
}
?>